package org.aceor.funny.common.exception;

import org.aceor.funny.common.enums.ErrorCodeEnum;

/**
 * 业务异常(不可重试)
 * Created by lxue on 16/3/19.
 */
public class BusinessRuntimeException extends CommonRuntimeException {
    public BusinessRuntimeException() {
    }

    public BusinessRuntimeException(String message) {
        super(message);
    }

    public BusinessRuntimeException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessRuntimeException(Throwable cause) {
        super(cause);
    }

    public BusinessRuntimeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public BusinessRuntimeException(ErrorCodeEnum errorCode) {
        super(errorCode.getDescription());
    }
    public BusinessRuntimeException(ErrorCodeEnum errorCode, Throwable t) {
        super(errorCode.getDescription(), t);
    }
}
